package test.test_7_5;

public enum Season {
    SPRING,
    SUMMER,
    AUTUMN,
    WINTER
}
class SeasonTest {
    public static void main(String[] args) {
        judgeSeason(Season.SPRING);

        int[] arr = {1,2,3,4};
    }

    private static void judgeSeason(Season season) {
        switch (season) {
            case SPRING -> System.out.println("这是春季");
            case SUMMER -> System.out.println("这是夏季");
            case AUTUMN -> System.out.println("这是秋季");
            case WINTER -> System.out.println("这是冬季");
            default -> System.out.println("输入不合法");
        }
    }
}
